package com.framework.app.samp.vo;

import java.io.Serializable;

import com.framework.plm.dbs.vo.BaseObject;

/**
 * AutherId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Auther extends BaseObject {
	private static final long serialVersionUID = 1L;
	// Fields

	private Long aid;
	private String aname;
	private Long age;
	private String address;
	private String sex;
	private String intro;

	// Constructors

	/** default constructor */
	public Auther() {
	}

	/** full constructor */
	public Auther(Long aid, String aname, Long age, String address,
			String sex, String intro) {
		this.aid = aid;
		this.aname = aname;
		this.age = age;
		this.address = address;
		this.sex = sex;
		this.intro = intro;
	}

	// Property accessors

	public Long getAid() {
		return this.aid;
	}

	public void setAid(Long aid) {
		this.aid = aid;
	}

	public String getAname() {
		return this.aname;
	}

	public void setAname(String aname) {
		this.aname = aname;
	}

	public Long getAge() {
		return this.age;
	}

	public void setAge(Long age) {
		this.age = age;
	}

	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getSex() {
		return this.sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getIntro() {
		return this.intro;
	}

	public void setIntro(String intro) {
		this.intro = intro;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Auther))
			return false;
		Auther castOther = (Auther) other;

		return ((this.getAid() == castOther.getAid()) || (this.getAid() != null
				&& castOther.getAid() != null && this.getAid().equals(
				castOther.getAid())))
				&& ((this.getAname() == castOther.getAname()) || (this
						.getAname() != null
						&& castOther.getAname() != null && this.getAname()
						.equals(castOther.getAname())))
				&& ((this.getAge() == castOther.getAge()) || (this.getAge() != null
						&& castOther.getAge() != null && this.getAge().equals(
						castOther.getAge())))
				&& ((this.getAddress() == castOther.getAddress()) || (this
						.getAddress() != null
						&& castOther.getAddress() != null && this.getAddress()
						.equals(castOther.getAddress())))
				&& ((this.getSex() == castOther.getSex()) || (this.getSex() != null
						&& castOther.getSex() != null && this.getSex().equals(
						castOther.getSex())))
				&& ((this.getIntro() == castOther.getIntro()) || (this
						.getIntro() != null
						&& castOther.getIntro() != null && this.getIntro()
						.equals(castOther.getIntro())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getAid() == null ? 0 : this.getAid().hashCode());
		result = 37 * result
				+ (getAname() == null ? 0 : this.getAname().hashCode());
		result = 37 * result
				+ (getAge() == null ? 0 : this.getAge().hashCode());
		result = 37 * result
				+ (getAddress() == null ? 0 : this.getAddress().hashCode());
		result = 37 * result
				+ (getSex() == null ? 0 : this.getSex().hashCode());
		result = 37 * result
				+ (getIntro() == null ? 0 : this.getIntro().hashCode());
		return result;
	}

	@Override
	public Serializable getId() {
		// TODO Auto-generated method stub
		return this.aid;
	}

	@Override
	public String getSequenceName() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void setId(String id) {
		this.aid = Long.parseLong(id);
	}

}